package com.zhang.communication.mapper;

import com.zhang.communication.entity.ChatFriends;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhang.communication.vo.UserChatVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 聊天列表 Mapper 接口
 * </p>
 *
 * @author 创世神
 * @since 2024-06-12
 */
@Mapper
public interface ChatFriendsMapper extends BaseMapper<ChatFriends> {

    /**
     * 查询用户的聊天列表
     *
     * @param userId
     * @return {@link List}<{@link UserChatVO}>
     */
    List<UserChatVO> getOpenChatLists(String userId);
}
